﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Square.Register
{
    public class PresenterFirstStepForRegisterSquare
    {
        IFirstStepForRegisterSquare view;
        public PresenterFirstStepForRegisterSquare(IFirstStepForRegisterSquare view)
        {
            this.view = view;
        }

        public void UpdateData()
        {
            view.SquareId = view.SquareToRegister.SquareId;
            view.CommentSquare = view.SquareToRegister.Comment;
            view.UbicationCroquisSquare = view.UbicationCroquisSquareToRegister;       
        }

        public void ChargeDataMedicineProduct()
        {
            view.SquareToRegister = new Model.Square()
            {
                SquareId=view.SquareId,
                Comment=view.CommentSquare
            };
        }

        public void LoadImage()
        {
            string ubicationCroquis=view.UbicationCroquisSquare;
            view.UbicationCroquisSquareToRegister = ubicationCroquis;
            view.UbicationCroquisSquare = ubicationCroquis;
        }
    }
}